package jvm;



public class TestGC {
    public Object instance=null;
    private static final int  _1MB=1024*1024;
    private byte[] bigSize=new byte[2*_1MB];

    public static void main(String[] args) {
        testGC();
    }
    public static void testGC(){
        TestGC objA = new TestGC();
        TestGC objB= new TestGC();
        objA.instance=objB;
        objB.instance=objA;

        objA=null;
        objB=null;

        System.gc();
    }
}
